//
//  SXWindowManager.m
//  SXDataManager-SXDataManager
//
//  Created by wangshuixin on 2019/1/19.
//

#import "SXWindowManager.h"

@implementation SXWindowManager

//获取当前window
+ (UIWindow *)currentWindow {
    UIApplication *app = [UIApplication sharedApplication];
    if ([app.delegate respondsToSelector:@selector(window)]) {
        return [app.delegate window];
    } else {
        return [app keyWindow];
    }
}

@end
